package com.eastcom.bm.atom;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="QA_DBSOURCE")
public class Atom_DBSource {

	private String id;
	
	private String dbType;
	
	private String host;
	
	private Integer port;
	
	private String sid;
	
	private String username;
	
	private String password;
	
	private String dbdesc;

	@Id
	@Column(name = "ID", nullable = false)
	@GenericGenerator(name = "Atom_DBSource-uuid", strategy = "uuid")
	@GeneratedValue(generator = "Atom_DBSource-uuid")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name="DBTYPE")
	public String getDbType() {
		return dbType;
	}

	public void setDbType(String dbType) {
		this.dbType = dbType;
	}

	@Column(name="HOST")
	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	@Column(name="PORT")
	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	@Column(name="SID")
	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	@Column(name="USERNAME")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name="PASSWORD")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name="DBDESC")
	public String getDbdesc() {
		return dbdesc;
	}

	public void setDbdesc(String dbdesc) {
		this.dbdesc = dbdesc;
	}
}
